package com.heima.client;

import com.heima.common.dto.ResponseResult;
import com.heima.domain.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("leadnews-user")
public interface UserClient {

    //根据id查询用户
    @GetMapping("/api/v1/user/{id}")
    ResponseResult<ApUser> getUserById(@PathVariable("id") Integer id);
}
